import * as React from 'react'
import * as ReactDOM from 'react-dom'

import {log} from '@emp/react-sql/helper'
import App from '@emp/react-sql/App'
import Hello2 from '@emp/react-sql/components/Hello'
import Menu from '@emp/react-common/components/Menu'
import inject from '@emp/react-common/utils/inject'
log('==============testing!!!!==============================')
inject()
ReactDOM.render(
  <>
    <Menu title="来自main" onClick={() => console.info('main click')}/>
    <div style={{backgroundColor: '#eee', padding: '20px'}}>
      <h2>React Project Component: Hello!!!!!</h2>
      <Hello2 compiler={'emp'} framework={'react'} />
    </div>
    ----
    <App />
  </>,
  document.getElementById('emp-root'),
)
